package com.blue.wechat.invoke.model.message;

import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.blue.wechat.invoke.model.Json;

public class TemplateMessage implements Json
{
	private String touser;
	@JSONField(name = "template_id")
	private String templateId;
	private String url;
	private Map<String, TemplateMessageItem> data;

	public TemplateMessage()
	{
	}

	@Override
	public String toJson()
	{
		return JSON.toJSONString(this);
	}

	public String getTouser()
	{
		return touser;
	}

	public void setTouser(String touser)
	{
		this.touser = touser;
	}

	public String getTemplateId()
	{
		return templateId;
	}

	public void setTemplateId(String templateId)
	{
		this.templateId = templateId;
	}

	public String getUrl()
	{
		return url;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	public Map<String, TemplateMessageItem> getData()
	{
		return data;
	}

	public void setData(Map<String, TemplateMessageItem> data)
	{
		this.data = data;
	}

}
